import { baseUrl } from "./config.js";
import Axios from "axios";


export let inspectPlanRecoverApi = (date, cycle) => {
    return (
        Axios.post(baseUrl + "dataRecovery/inspectPlanRecover", {
            date: date,
            cycle: cycle
        })
    );
}

export let pushRecoverApi = (date, type) => {
    return (
        Axios.post(baseUrl + "dataRecovery/pushRecover", {
            date: date,
            type: type
        })
    );
}


export let recoverLastTermInspectPlanMakeApi = (startDate, endDate, departmentId, schoolLevel) => {
    return (
        Axios.post(baseUrl + "schoolSafetySupervisor/recoverLastTermInspectPlanMake", {
            startDate: startDate,
            endDate: endDate,
            departmentId: departmentId,
            schoolLevel: schoolLevel
        })
    );
}
